<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateZanTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('zan', function (Blueprint $table) {
            $table->increments('id')->comment('自增ID');
            $table->integer('single_id')->comment('单品ID');
            $table->integer('users_id')->comment('用户ID');
            $table->tinyInteger('zanstatus')->default(2)->comment('点赞状态1:已点赞2:未点赞');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
